Skip to content

fix(db): preserve applied migration checksums - #52

Merged
haasonsaas merged 2 commits into
mainfrom
fix/corpus-migration-checksums
Aug 4, 2026
Merged

fix(db): preserve applied migration checksums#52
haasonsaas merged 2 commits into
mainfrom
fix/corpus-migration-checksums

Conversation

@haasonsaas

Copy link
Copy Markdown
Contributor

The live Corpus database has applied SQLx migrations 1 through 10. PR #47 added documentation-only lines to migrations 2 through 9 after they were applied, changing their SHA-384 checksums and preventing every new server from starting. Restore those applied files exactly, document the immutability rule, and add a regression test for the applied migration checksums plus the existing unique-version guard. Verification: cargo fmt --all -- --check; cargo test -p corpus-core --lib (98 passed); cargo test -p corpus-server --no-run; git diff --check. The repository has no pre-commit configuration.

@haasonsaas
haasonsaas merged commit 33ddbcd into main Aug 4, 2026
5 checks passed
@haasonsaas
haasonsaas deleted the fix/corpus-migration-checksums branch August 4, 2026 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant